from strutils import parseInt

try:
  write stdout, "Enter number 1: "
  let input1 = readLine(stdin)

  write stdout, "Enter number 2: "
  let input2 = readLine(stdin)

  let num1 = parseInt(input1)
  let num2 = parseInt(input2)
  echo "Sum: ", num1+num2
except ValueError:
  echo "convert failed"
except:
  echo "unknown error"
  raise
